﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _01观察者模式
{
    //看股票的同事
    public class StockObserver : Observer
    {
        public StockObserver (string name,ISubject sub) : base(name, sub) { }
        public override void Update()
        {
            Console.WriteLine($"通知内容：{sub.SubjectState},反应：{name}关闭股票行情，继续工作");
        }
    }
}
